
#include("includes/header.xhtml")

<div class="panel">
    <h3>Available processes</h3>
   	<table bgcolor="#000000" border="0" cellpadding="3" cellspacing="1" width="48%" align="center">
    
    <tr bgcolor="green" align="center">
        <td><b>PackageName</b></td>
        <td><b>ProcessName</b></td>
        <td><b>Version</b></td>
        <td><b>Action</b></td>
    </tr>
    #if($processMap.total == 1)
   	<tr bgcolor="#ffffff" onmouseover="javascript:this.style.background='#C3FDB8';" onmouseout="javascript:this.style.background='#ffffff';">
        <td>$!processMap.data.packageName</td>
        <td>$!processMap.data.name</td>
        <td align="center">$!j.version</td>
        <td align="center">
            <a href="/yama/joget/process/start/$urlEncoder.encode($!processMap.data.id)">
                <img src="/yama/images/silk/application_view_detail.png" title="Run Process" border="0"/></a>
        </td>
    </tr>
   	#else
    #foreach($j in $processMap.data)
    <tr bgcolor="#ffffff" onmouseover="javascript:this.style.background='#C3FDB8';" onmouseout="javascript:this.style.background='#ffffff';">
        <td>$!j.packageName</td>
        <td>$!j.name</td>
        <td align="center">$!j.version</td>
        <td align="center">
            <a href="/yama/joget/process/start/$urlEncoder.encode($!j.id)">
                <img src="/yama/images/silk/application_view_detail.png" title="Run Process" border="0"/></a>
        </td>
    </tr>
    #end
    #end
        </table>
</div>

#include("includes/footer.xhtml")
